<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>18-小米商品详情布局</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      /* font-family: 'Microsoft YaHei'; */
    }

    /* 大盒子 */
    .box {
      width: 350px;
      height: 700px;
      margin: 0 auto;
    }

    /* 手机图 */
    .box .product {
      height: 400px;
    }
    .box .product img {
      width: 100%;
    }

    /* 标题 */
    .box .title h2 {
      font-size: 18px;
      font-weight: 400;
      color: gray;
      padding: 0px 10px 30px 10px;
    }

    /* 价格 */
    .price {
      margin: 5px 0;
    }

    .price .selected {
      font-size: 25px;
      font-weight: 700;
      padding-left: ;
      color: red;
    }

    .price span:nth-of-type(2) {
      font-size: 16px;
      font-weight: 700;
      color: gray;
      text-decoration: line-through;
    }

    /* 售出详情 */
    .details {      
      line-height: 22px;
    }

    .details > h2 {
      float: left;
      font-size: 14px;
      color: gray;
      margin-left: 10px;
    }

    .details h2 span {
      color: red;
    }

    .details .bar {
      float: left;
      margin: 0 10px;
      width: 150px;
      height: 20px;
      border: 1px solid red;
      border-radius: 10px;
    }

    .details .bar_in {
      width: 130px;
      height: 100%;
      background-color: red;
      border-radius: 10px 0 0 10px;
    }

    .shop {
      float: left;
      width: 100%;
      height: 70px;
      font-size: 25px;
      color: #fff;
      background: red;
      margin-top: 20px;

      transition: all 0.5s;
    }

    .shop:hover {
      background: rgb(226, 32, 32);
      cursor: pointer;
    }


  </style>

</head>

<body>


  <div class="box">
    <div class="product">
      <img src="images/phoe.jpg" alt="">
    </div>

    <div class="title">
      <h2>
        Apple苹果iPhone 6s Plus (A1699) 32G 金色 移动联通电信4G手机
      </h2>
    </div>

    <div class="price">
      <span class="selected">￥6099</span> <span>￥9999</span>
    </div>

    <div class="details">
      <h2>已售<span>87%</span></h2>
      <div class="bar">
        <div class="bar_in"></div>
      </div>
      <h2>剩余<span>29</span>件</h2>
    </div>

    <button class="shop">
      立即抢购
    </button>
  </div>


</body>

</html>